package model;



public class UncountableGoods implements Goods {

	protected String label;
	protected int cost;
	
	public UncountableGoods(String label) {
		this(label,0);
	}

	public UncountableGoods(String label, int cost) {
		this.label = label;
		this.cost = cost > 0 ? cost : 0;
	}
	
	/**
	 * Setter of the property <tt>label</tt>
	 * @param label  The label to set.
	 * @uml.property  name="label"
	 */
	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * Getter of the property <tt>cost</tt>
	 * @return  Returns the cost.
	 * @uml.property  name="cost"
	 */
	@Override
	public int getCost() {
		return cost;
	}

	/**
	 * Getter of the property <tt>label</tt>
	 * @return  Returns the label.
	 * @uml.property  name="label"
	 */
	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public boolean setCost(String cost0) {
		// TODO Auto-generated method stub
		return false;
	}

	
	/**
	 * @uml.property  name="cost"
	 */

	/**
	 * Setter of the property <tt>cost</tt>
	 * @param cost  The cost to set.
	 * @uml.property  name="cost"
	 */
	public void setCost(int cost) {
		this.cost = cost;
	}





}
